{%extends "base.html"%}
{%block body%}
<h4 class="optiontitle">{{Title}}</h4>
{%if user %}
	{%if member %}
	<p style="text-align:right">[ <a href="/user/varticle/edit/{{item.key.id}}">Edit</a> - <a href="/user/varticle/delete/{{item.key.id}}">Del</a> ]</p>
	{%endif%}
{%endif%}

<div class="thread_info_block">
	<div class="inner_block">
		{{item.content}}
	</div>
</div>
<!-- AddThis Button BEGIN -->
<div style="clear:both"></div>

<div class="addthis_toolbox addthis_default_style addthis_32x32_style" style="padding:10px 0 10px 0; float:right">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=vinhbk2000"></script>
<div style="clear:both"></div>
<!-- AddThis Button END -->

<script src="/static/jquery.form.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
  	loadListArticles('{{item.created}}');
});
function loadListArticles(minDate) {
	$.get("/varticle/listAjax",{date: minDate}, function(data){
			$("#divArticles").html(data);
		});	
}
function updateComments() {
	var minDate = $('#minDate').val();
	var article_id = $('#article_id').val();
	$.get("/vchat/listComment",{article_id:article_id}, function(data){
			$("#divComments").html(data);
		});	
}
function loadListComments() {
	window.setInterval("updateComments()", (10000*1000));
	updateComments();
}
</script>
<div><b>Other news</b></div>
<div id="divArticles"></div>
<div id="disqus_thread"></div>
<script type="text/javascript">
    var disqus_shortname = 't090';
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
{%endblock%}